Scotland has passed a new law requiring